#docker build -t dk.uino.cn/eam_backend/ea-workflow:2.0 .
FROM amazoncorretto:8
MAINTAINER uino
USER root
ADD bootstrap.yaml /usr/local/
ADD start.sh /usr/local/
ADD eam-workable-deploy.tar /usr/local/

RUN rm -f /usr/local/eam-workable/bootstrap.properties \
    && rm -f /usr/local/eam-workable/start.sh \
    && mv /usr/local/bootstrap.yaml /usr/local/eam-workable/ \
    && mv /usr/local/start.sh /usr/local/eam-workable/ \
	&& chmod +x /usr/local/eam-workable/start.sh

WORKDIR /usr/local/eam-workable

CMD /usr/local/eam-workable/start.sh